Managed Folder Mailbox Policy - "A positional parameter cannot be found that accepts argument '-ManagedFolderMailboxPolicyAllowe d'"
Hello,
I'm using Shell to setup managed folder mailbox policy on a large number of mailboxes.
When i specify something on the lines of below for a single user i get an error:
Set-mailbox user@domain.com -managedFolderMailboxPolicy "My policy" -ManagedFolderMailboxPolicyAllowed
A positional parameter cannot be found that accepts argument '-ManagedFolderMailboxPolicyAllowed' .
+ CategoryInfo : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Set-Mailbox
Specifying the above switch as -ManagedFolderMailboxPolicyAllowed:$True
does not help either.
I'm sure there is somethign very basic i may be missing, any help is greatly appreciated.
Thanks!
September 3rd, 2012 10:35pm
Make sure you are adding the user name correctly. Or use Set-Mailbox -Identity.
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2012 7:16am
Thank you for your reply.
I have verified user name and have tried Set-Mailbox -identity as well. If i remove "-ManagedFolderMailboxPolicyAllowed" switch, it works however of course throws the confirmation dialog which i wanna avoid. That however proves that the username or identity
parameter i'm passing is accurate.
Thanks
September 4th, 2012 9:42am
Hi Shaak1,
Any updates?Frank Wang
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2012 12:04am